class Room {
	constructor(roomIndex) {
		this.roomIndex = roomIndex;
		this.game = null;
		this.desk = [];
		this.waiting = true;
	}
	// 玩家进入某一桌游戏中，当第3个玩家加入时，默认自动开始游戏，游戏结束所有人退出房间
	joinRoom(player) {
		this.players.push(player)
	}
	// 某一桌游戏的玩家离开房间
	leaveRoom(deskIndex) {
		this.players.splice(deskIndex, 1)
	}
}
module.exports = Room;